package com.david.system.pojo.Entity;


import lombok.Data;


import java.util.ArrayList;
import java.util.List;

@Data
public abstract class ChildrenEntity<T> {
    public Integer id ;
    public Integer parentId ;
    public List<T> children = new ArrayList<T>();

//    public List<Object> getChildren() {
//        return children;
//    }
}
